package com.stone.back.order.entity;

import java.util.Date;

import com.stone.common.util.DateUtil;

/**
 * 订单详细表
 * @author Stone P
 */

public class BfOrderInfo implements java.io.Serializable {

	// Fields

	private Integer orderdishid;
	private String orderid;
	private Integer dataid;
	private Integer datatype;
	private Integer datacount;
	private Date startdate;
	private Date enddate;
	private String remark;

	// Constructors

	/** default constructor */
	public BfOrderInfo() {
	}

	/** full constructor */
	public BfOrderInfo(String orderid, Integer dataid, Integer datatype, Integer datacount, Date startdate, Date enddate, String remark) {
		this.orderid = orderid;
		this.dataid = dataid;
		this.datatype = datatype;
		this.datacount = datacount;
		this.startdate = startdate;
		this.enddate = enddate;
		this.remark = remark;
	}

	// Property accessors

	public Integer getOrderdishid() {
		return this.orderdishid;
	}

	public void setOrderdishid(Integer orderdishid) {
		this.orderdishid = orderdishid;
	}

	public String getOrderid() {
		return this.orderid;
	}

	public void setOrderid(String orderid) {
		this.orderid = orderid;
	}

	public Integer getDataid() {
		return dataid;
	}

	public void setDataid(Integer dataid) {
		this.dataid = dataid;
	}

	public Integer getDatatype() {
		return datatype;
	}

	public String getDatatypeStr() {
		switch (datatype) {
			case 1: 
				return "菜品";
			case 2: 
				return "套餐";
			default:
				return "";
		}
	}

	public void setDatatype(Integer datatype) {
		this.datatype = datatype;
	}

	public Integer getDatacount() {
		return datacount;
	}

	public void setDatacount(Integer datacount) {
		this.datacount = datacount;
	}

	public Date getStartdate() {
		return startdate;
	}

	public String getStartdateStr() {
		if(null != startdate) {
			return DateUtil.dateFormatStr(DateUtil.DATE_FORMAT, startdate);
		} else {
			return "";
		}
	}

	public void setStartdate(Date startdate) {
		this.startdate = startdate;
	}

	public Date getEnddate() {
		return enddate;
	}

	public String getEnddateStr() {
		if(null != enddate) {
			return DateUtil.dateFormatStr(DateUtil.DATE_FORMAT, enddate);
		} else {
			return "";
		}
	}

	public void setEnddate(Date enddate) {
		this.enddate = enddate;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
}